package com.yuw.oop;

public class Student {

	// 属性
	/**
	 * 学生姓名
	 */
	private String stuName;

	/**
	 * 学号
	 */
	private String stuNum;
	private String stuSex;
	private int stuScore;

	// 构造方法
	
	public Student(String stuName) {
		this.stuName = stuName;
		System.out.println("调用了构造方法");
	}
	
	// 行为
	public void doStuding() {
		System.out.println(getStuName() + " is Studing...");
	}
	
	
	// setter/getter方法
	public String getStuName() {
		return stuName;
	}

	public void setStuName(String stuName) {
		this.stuName = stuName;
	}

	public String getStuNum() {
		return stuNum;
	}

	public void setStuNum(String stuNum) {
		this.stuNum = stuNum;
	}

	public String getStuSex() {
		return stuSex;
	}

	public void setStuSex(String stuSex) {
		this.stuSex = stuSex;
	}

	public int getStuScore() {
		return stuScore;
	}

	public void setStuScore(int stuScore) {
		this.stuScore = stuScore;
	}

	
	
	
	
}
